package tp.pr5.mv.instructions.logic;

import tp.pr5.mv.Opcode;
import tp.pr5.mv.instructions.BinaryInstructions;
import tp.pr5.mv.traps.MVTrap;

public class AND extends BinaryInstructions {
	
	public AND() {
		
		op = Opcode.AND;
	}
	
	public int combine ( int op1, int op2 ) throws MVTrap {
		
		if ( ( op1 == 0 ) || ( op2 == 0 ) )    // AND de operandos.
			return 0;
		else 
			return 1;
	}

}
